package com.headStorm.httpuse;

import cn.hutool.http.HttpUtil;

import java.util.HashMap;
import java.util.Map;

public class HttpUseDemo1 {
    public static void main(String[] args) {
        Map<String,Object> queryParams = new HashMap<String,Object>();
        queryParams.put("app","live");
        queryParams.put("name","a");
        queryParams.put("rec","all");

        String url = "http://192.168.126.128:80/control/record/start";
            String res = HttpUtil.get(url, queryParams);
        System.out.println(res);
    }
}
